<div class="contents">
 <!--
  <ol class="breadcrumb" >
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/simu/list">私募基金</a></li>
    <li class="active">{{item.jjmc}}</li>
    <li class="active">详情</li>
  </ol> 
  -->
  <table class="table table-striped table-bordered">
    <tbody> 
    <tr> 
      <td class="text-muted" width="150">基金全称</td> <td width="40%">{{item.jjqc}}</td>
      <td class="text-muted" width="150">基金发行方</td> <td width="40%">{{item.jjfxr}}</td>
    </tr>
    <tr> 
      <td class="text-muted">基金简称</td> <td >{{item.jjmc}}</td>
      <td class="text-muted">托管银行</td> <td >{{item.tgyh}}</td>
    </tr>
    <tr> 
      <td class="text-muted">基金公司</td> <td >{{company.gsmc}}</td>
      <td class="text-muted">基金分类</td> <td >{{item.jjfl}}</td>
    </tr>
    <tr> 
      <td class="text-muted">基金经理</td> <td >{{manager.jjjlmc}}<span ng-if="manager2.jjjlmc">,{{manager2.jjjlmc}}</td>
      <td class="text-muted">结构形式</td> <td >{{item.jgxs}}</td>
    </tr>
    <tr> 
      <td class="text-muted">基金状态</td> <td >{{item.jjzt}}</td>
      <td class="text-muted">组织形式</td> <td >{{item.zzxs}}</td>
    </tr>
    <tr> 
      <td class="text-muted">基金编码</td> <td >{{item.jjbm}}</td>
      <td class="text-muted">备案号</td> <td >{{item.bah}}</td> 
    </tr>
    <tr> 
      <td class="text-muted">成立日</td> <td >{{item.jjclsj | date:'yyyy-MM-dd'}}</td>
      <td class="text-muted">净值日期</td> <td >{{item.lsjz.jzrq}}</td> 
    </tr>
    <tr> 
      <td class="text-muted">估值日</td> <td >{{item.gzr}}</td>
      <td class="text-muted">单位净值</td> <td >{{item.lsjz.jzdw}}</td> 
    </tr>
    <tr> 
      <td class="text-muted">封闭期</td> <td >{{item.fbq}}</td>
      <td class="text-muted">累计净值</td> <td >{{item.lsjz.ljjz}}</td> 
    </tr>
    <tr> 
      <td class="text-muted">开放日</td> <td >{{item.kfrq}}</td>
      <td class="text-muted">涨跌幅</td> <td >{{item.lsjz.zdf}}</td> 
    </tr>
     <tr> 
      <td class="text-muted">币种</td> <td >{{item.bz}}</td>
      <td class="text-muted">最低认购金额</td> <td>{{item.zdrgje}}</td> 
    </tr>
    <tr rowspan="3"> 
      <td class="text-muted">提交资料</td> <td >{{item.tjzls|tjzlStatus}}</td>
    </tr>
     <tr> 
      <td class="text-muted">净值单位</td> <td >{{item.jzdw}}</td>
      <td class="text-muted">追加最低金额</td> <td >{{item.zjzdje}}</td> 
    </tr>
    <tr  rowspan="3"> 
      <td class="text-muted">产品期限说明</td> <td colspan="3">{{item.cpqxsm}}</td>
    </tr>
     <tr  rowspan="7"> 
      <td class="text-muted">购买须知</td> 
      <td colspan="3"  ng-bind-html="item.fpFundBuynoticeDTO.buyNoticeDetail"> 
       <!-- {{item.fpFundBuynoticeDTO.buyNoticeDetail}} -->
      </td>
    </tr>

    <!--
      <tr> <td class="text-muted" width="150">基金全称</td> <td >{{item.jjqc}}</td> </tr>
      <tr> <td class="text-muted">基金简称</td> <td >{{item.jjmc}}</td> </tr>
      <tr> <td class="text-muted">编码</td> <td >{{item.jjbm}}</td> </tr>
      <tr> <td class="text-muted">基金公司</td> <td >{{company.gsmc}}</td> </tr>
      <tr> <td class="text-muted">基金经理</td> <td >{{manager.jjjlmc}}<span ng-if="manager2.jjjlmc">,{{manager2.jjjlmc}}</td> </tr>
      <tr> <td class="text-muted">基金成立时间</td> <td >{{item.jjclsj | date:'yyyy-MM-dd'}}</td> </tr>
      <tr> <td class="text-muted">基金分类</td> <td >{{item.jjfl}}</td> </tr>
    
      <tr> <td class="text-muted">结构形式</td> <td >{{item.jgxs}}</td> </tr>
    
      <tr> <td class="text-muted">组织形式</td> <td >{{item.zzxs}}</td> </tr>
    
      <tr> <td class="text-muted">基金发行人</td> <td >{{item.jjfxr}}</td> </tr>
    
      <tr> <td class="text-muted">托管银行</td> <td >{{item.tgyh}}</td> </tr>
    
      <tr> <td class="text-muted">估值日</td> <td >{{item.gzr}}</td> </tr>
    
      <tr> <td class="text-muted">基金状态</td> <td >{{item.jjzt}}</td> </tr>
    
    
      <tr> <td class="text-muted">币种</td> <td >{{item.bz}}</td> </tr>
    
      <tr> <td class="text-muted">净值单位</td> <td >{{item.jzdw}}</td> </tr>
    
      <tr> <td class="text-muted">封闭期</td> <td >{{item.fbq}}</td> </tr>
    
      <tr> <td class="text-muted">备案号</td> <td >{{item.bah}}</td> </tr>
    
      <tr> <td class="text-muted">产品期限说明</td> <td >{{item.cpqxsm}}</td> </tr>
    
      <tr> <td class="text-muted">基金发行人</td> <td >{{item.jjfxr}}</td> </tr>

      -->
    <!--
      <tr> <td></td><td>
        <a class="btn btn-primary" href="#/simu/edit?id={{item.id}}">编辑</a>
      </td></tr>
      -->

      <tr> <td></td><td colspan="3">
      <a class="btn btn-primary" ng-click="remove(item.id)" has-auth where="btn" who="PRODUCT_DELETE" owner="{{item.createBy}}"  ng-confirm-click="请确认操作?">删除</a>
      <span ng-if="item.pubStatus != '1'">
        <a class="btn btn-primary" ng-click="start(item.id,item.jjbm)" has-auth where="btn" who="PRODUCT_PUBLISH" owner="{{item.createBy}}" ng-confirm-click="请确认操作?">上架</a>
      </span>
       <span ng-if="item.pubStatus == '1'">
        <a class="btn btn-primary" ng-click="stop(item.id,item.jjbm)" has-auth where="btn" who="PRODUCT_PUBLISH" owner="{{item.createBy}}" ng-confirm-click="请确认操作?">下架</a>
       </span>
      </td></tr>     
    </tbody>
  </table> 
  <form class="form-horizontal mt-30" role="form" name="form" novalidate ng-submit="saveTrans()" style="border:1px solid #ddd;padding:20px;">
    <div class="form-group" ng-class="{'has-error':form.toUserId.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span>
        转移产品权限给：
      </label>
      <div class="col-sm-4">
        <select class="form-control" name="toUserId" ng-model="trans.toUserId" ng-options="m.userId as m.username for m in userList" required="required"><option value="">--请选择管理员--</option> </select> 
      </div> 
      <div class="col-sm-2">
        <input type="submit" class="btn btn-primary" value="保存"  has-auth where="btn" who="PRODUCT_TRANS_ADD" owner="{{item.createBy}}"/>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.pName.$invalid}">
      <label class="col-sm-2 control-label">
        权限转移列表：
      </label>
      <div class="col-sm-4">
        <table class="table table-striped table-hover ">
          <thead>
            <tr>
              <th width="120">转移人</th>
              <th width="120">转移目标</th>
              <th width="150">转移时间</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="item in transList">
              <td>{{item.formUserName}}</td>
              <td>{{item.toUserName}}</td>
              <td>{{item.transferDate | date:"yy-MM-dd HH:mm:ss"}}</td>
            </tr>
          </tbody>
        </table>
      </div>
  </form>
</div>
